x86/PCI: pass correct register value to XSM
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 22 Jun 2012 11:44:54 +0000 (13:44 +0200)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 22 Jun 2012 11:44:54 +0000 (13:44 +0200)
commit1448429664da9a3c33fc64cbbdde6508b86ecb2e
tree5ed1058f8ba243503e36d0d08a86ea6a3dbe4651
parent56b3130c1a4ffc3c1a045559240261b892b9b880
x86/PCI: pass correct register value to XSM

When attempting to use AMD's extension to access the extended PCI config
space, only the low byte of the register number was being passed to XSM.
Include the correct value of the register if this feature is enabled;
otherwise, bits 24-30 of port cf8 are reserved, so disallow the invalid
access.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Don't fail the permission check except when the MSR can't be read.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c